package com.example.weight.navigation;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.example.weight.R;
import com.example.weight.greenSeasons.SolidLiquid.guzhangjilu7_7;
import com.example.weight.greenSeasons.SolidLiquid.yongdian7_3;
import com.example.weight.householdWaste.ChoseRoleActivity;
import com.hjq.bar.OnTitleBarListener;
import com.hjq.bar.TitleBar;

public class ShengchanxianchangGuyefenliNavigationActivity extends AppCompatActivity {

    private String name, role, factory;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shengchanxianchang_guyefenli_nav);

        Intent previousIntent = getIntent();
        name = previousIntent.getStringExtra("name");
        factory = previousIntent.getStringExtra("factory");
        role = previousIntent.getStringExtra("role");

        TitleBar titleBar = findViewById(R.id.titleBar);
        titleBar.setOnTitleBarListener(new OnTitleBarListener() {
            @Override
            public void onLeftClick(View v) {
                finish();
            }

            @Override
            public void onTitleClick(View v) {}

            @Override
            public void onRightClick(View v) {}
        });

    }

    public void turnfacility_run(View view) {
        Intent intent =new Intent(ShengchanxianchangGuyefenliNavigationActivity.this, ChoseRoleActivity.class);
        intent.putExtra("name", name);
        intent.putExtra("factory", factory);
        intent.putExtra("fName", "shebeiyunxing7_1");
        startActivity(intent);
    }
    public void turntaphole(View view) {
        Intent intent =new Intent(ShengchanxianchangGuyefenliNavigationActivity.this, ChoseRoleActivity.class);
        intent.putExtra("name", name);
        intent.putExtra("factory", factory);
        intent.putExtra("fName", "chuzha7_2");
        startActivity(intent);
    }
    public void turnfacility_check(View view) {
        Intent intent =new Intent(ShengchanxianchangGuyefenliNavigationActivity.this, ChoseRoleActivity.class);
        intent.putExtra("name", name);
        intent.putExtra("factory", factory);
        intent.putExtra("fName", "shebeijiancha7_4");
        startActivity(intent);
    }
    public void turnfacility_day_maintain(View view) {
        Intent intent =new Intent(ShengchanxianchangGuyefenliNavigationActivity.this, ChoseRoleActivity.class);
        intent.putExtra("name", name);
        intent.putExtra("factory", factory);
        intent.putExtra("fName", "SolidLiquidDailyMaintenance");
        startActivity(intent);
    }
    public void turnfacility_month_maintain(View view) {
        Intent intent =new Intent(ShengchanxianchangGuyefenliNavigationActivity.this, ChoseRoleActivity.class);
        intent.putExtra("name", name);
        intent.putExtra("factory", factory);
        intent.putExtra("fName", "SolidLiquidMonthMaintenance");
        startActivity(intent);
    }
}
